package Objects;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public abstract class GameObject 
{
	public Vector2 position;
	public Bitmap image;
	public Rectangle bounds;
	
	public GameObject(float x, float y, float w, float h)
	{
		position = new Vector2(x,y);
		this.bounds = new Rectangle(this.position.x, this.position.y , this.position.x + w, this.position.y + h);
	}
	
	public void Update(float deltaTime)
	{
		this.bounds.lowerLeft.set(position).sub(bounds.width / 2, bounds.height / 2);
	}
	
	public abstract void Draw(Canvas c);
}
